package com.mengmablog.blog.dao;

import com.mengmablog.blog.entity.Metas;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MetasMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Metas record);

    int insertSelective(Metas record);

    Metas selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Metas record);

    int updateByPrimaryKey(Metas record);

    List<Metas> findByType(String type);

    Metas findByTypeAndName(@Param("type") String type, @Param("name") String name);

    int insertMeta(@Param("name") String name, @Param("type") String type);
}